import request from '@/utils/request'

// 查询枢纽互通里程实测数据测试列表
export function listRoadInterchangeTest(query) {
  return request({
    url: '/functiontest/RoadInterchangeTest/list',
    method: 'get',
    params: query
  })
}

// 查询枢纽互通里程实测数据测试详细
export function getRoadInterchangeTest(id) {
  return request({
    url: '/functiontest/RoadInterchangeTest/' + id,
    method: 'get'
  })
}

// 新增枢纽互通里程实测数据测试
export function addRoadInterchangeTest(data) {
  return request({
    url: '/functiontest/RoadInterchangeTest',
    method: 'post',
    data: data
  })
}

// 修改枢纽互通里程实测数据测试
export function updateRoadInterchangeTest(data) {
  return request({
    url: '/functiontest/RoadInterchangeTest',
    method: 'put',
    data: data
  })
}

// 删除枢纽互通里程实测数据测试
export function delRoadInterchangeTest(id) {
  return request({
    url: '/functiontest/RoadInterchangeTest/' + id,
    method: 'delete'
  })
}

// 导出枢纽互通里程实测数据测试
export function exportRoadInterchangeTest(query) {
  return request({
    url: '/functiontest/RoadInterchangeTest/export',
    method: 'post',
    params: query,
    responseType: 'blob'
  })
}

// 导入枢纽互通里程实测数据测试
export function importRoadInterchangeTest(data) {
  return request({
    url: '/functiontest/RoadInterchangeTest/importData',
    method: 'post',
    data: data
  })
}

// 下载导入模板
export function importTemplateRoadInterchangeTest() {
  return request({
    url: '/functiontest/RoadInterchangeTest/importTemplate',
    method: 'get',
    responseType: 'blob'
  })
}

// 实测单位批量审核
export function fieldAuditRoadInterchangeTestBatch() {
  return request({
    url: '/functiontest/RoadInterchangeTest/fieldAudit/batch',
    method: 'post'
  })
}

// 业主批量审核
export function ownerAuditRoadInterchangeTestBatch(data) {
  return request({
    url: '/functiontest/RoadInterchangeTest/ownerAudit/batch',
    method: 'post',
    data: data
  })
}

// 中心批量审核
export function centerAuditRoadInterchangeTestBatch() {
  return request({
    url: '/functiontest/RoadInterchangeTest/centerAudit/batch',
    method: 'post'
  })
}

// 同步数据到正式表
export function syncDataToRoadInterchange() {
  return request({
    url: '/functiontest/RoadInterchangeTest/sync',
    method: 'post'
  })
}
